package com.qingzhou.web.controller.edc;

import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.query.QueryWrapper;
import com.qingzhou.web.repository.entity.DataCheckLogEntity;
import com.qingzhou.web.repository.entity.PatientEntity;
import com.qingzhou.web.service.DataCheckLogService;
import com.qingzhou.web.service.impl.params.request.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.noear.solon.annotation.*;

@Api("数据检查日志")
@Controller
@Mapping("edc/datachecklog")
public class ForceEditLogController {

    @Inject
    DataCheckLogService dataCheckLogService;
    @Post
    @Mapping("page")
    @ApiOperation("数据检查日志分页")
    public Page<DataCheckLogEntity> page(Page<DataCheckLogEntity> page, DataCheckLogEntity dataCheckLogEntity) {
        return dataCheckLogService.page(page,dataCheckLogEntity);
    }

    @Get
    @Mapping("detail")
    @ApiOperation("数据检查日志详情")
    public DataCheckLogEntity detail(DataCheckLogDetailForm form) {
        return dataCheckLogService.detail(form);
    }

}
